<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMerchantsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('merchants', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('user_id')->comment('账户ID');
            $table->string('name')->comment('商户名称');
            $table->string('logo')->comment('商户logo图片地址');
            $table->string('address')->comment('商户地址');
            $table->string('phone')->comment('客服电话');
            $table->string('service_time')->comment('客服服务时间');
            $table->timestamps();
            $table->comment = '商户表';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('merchants');
    }
}
